projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd8252
)
(Text Lines): Add line-number-at-pos.
author
Kim F. Storm
<storm@cua.dk>
Sat, 7 Feb 2004 01:01:16 +0000
(
01:01
+0000)
committer
Kim F. Storm
<storm@cua.dk>
Sat, 7 Feb 2004 01:01:16 +0000
(
01:01
+0000)
lispref/positions.texi
patch
|
blob
|
history
diff --git
a/lispref/positions.texi
b/lispref/positions.texi
index 72b84a6a0cee0ccad17d27976b08b2034f4af8f7..a0e151a1616f09db4dd7bfef0ea31218f8b38c9e 100644
(file)
--- a/
lispref/positions.texi
+++ b/
lispref/positions.texi
@@
-409,6
+409,12
@@
Here is an example of using @code{count-lines}:
@end example
@end defun
+@defun line-number-at-pos &optional pos
+@cindex line number
+This function returns the line number in the current buffer
+corresponding the buffer position @var{pos}. If @var{pos} is nil or
+omitted, the current buffer position is used.
+
@ignore
@c ================
The @code{previous-line} and @code{next-line} commands are functions